package com.zuoye.day19;

import jdk.internal.dynalink.linker.LinkerServices;

import java.util.Arrays;
import java.util.List;

public class StreamDemo {
    public static void main(String[] args) {
        List<Integer> nums = Arrays.asList(1,null,3,4,null,6);

        nums.stream().filter(num -> num != null).forEach(System.out::println);
    }
}
